import request from '@/request'
import type { Response, Page } from '@/types/global'

export const getList = (): Promise<Response> => {
  return request.get('/rest/text')
}

export const getFoodlist = (): Promise<Response> => {
  return request.get('/rest/foodlist')
}

export const orderAdd = (data: Page): Promise<Response> => {
  return request.post('/rest/order', data)
}
